package com.ly.im.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.im.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author LY
 * @create 2024/2/2 11:16
 * @Description 用户
 */
public interface UserRepository extends BaseMapper<User> {

    @Select("select * from user where username = #{username}")
    User getUserByUserName(@Param("username") String username);
}
